Application of the theory of Hill's equation to the study of the stability of periodic classical orbits