Neural-network approximation of piecewise continuous functions: application to friction compensation | Synapse