Fermi-LAT Observations of the Diffuse \gamma-Ray Emission: Implications for Cosmic Rays and the Interstellar Medium