Joint estimation of gravity anomalies using second and third order potential derivatives