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