A novel regularization scheme for electromagnetic inverse problems