The simultaneous solution of the inverse problem of gravimetry and magnetics by means of non-linear programming