An iterative algorithm for predicting seafloor topography from gravity anomalies