Resonance study of spring pendulum based on asymptotic solutions with polynomial approximation in quadratic means