Computes dipole parameters using both precomputed magnetic and potential fields as the residual function. The electric electrodes have been "positioned" by projecting the magnetic sensors onto the torso surface.