Measurement of the high-energy gamma-ray emission from the Moon with the Fermi Large Area Telescope