Two-Loop Scattering Amplitudes from the Riemann Sphere