Analysis of depth resolution in potential-field inversion