Inversion of self-potential anomalies in mineral exploration