High-energy gamma-ray observations of solar flares with the Fermi large area telescope