Morse theory, closed geodesics, and the homology of free loop spaces