A modification of He’s variational approach using the least square method to nonlinear oscillators