A new analytical approach for solving quadratic nonlinear oscillators