Loop-level Amplitudes from the Scattering Equations