Inferred Cosmic-Ray Spectrum from Fermi Large Area Telescope Gamma-Ray Observations of Earth's Limb