Inversion of gravity, gravity gradient, and magnetic data with application to subsalt imaging