Calculation of nonlinear vibrations of piecewise-linear systems using the shooting method