Solution of certain two dimensional inverse problems in potential theory and their application in exploration geophysics