Nonlinear vibration of mechanical systems by means of Homotopy perturbation method