Electromagnetic detection of buried targets by means of an adaptive inversion approach