An all-optical, high-sensitivity magnetic gradiometer