An analytic solution of projectile motion with the quadratic resistance law using the homotopy analysis method