Inverse gravimetric problem in geoprospecting and geodesy