Approximate solution of a piecewise linear–nonlinear oscillator using the homotopy analysis method