Downward continuation and transformation of potential fields with application to marine magnetic anomalies