Gravar-mail: Bayesian inference applied to the electromagnetic inverse problem