Asymptotic stability of a pendulum with quadratic damping