Rapid gravity computations for two-dimensional bodies with application to the Mendocino submarine fracture zone