Inferred cosmic-ray spectrum from fermi large area telescope gamma-ray Observations of Earth's Limb