Electromagnetic tracking system with reduced distortion using quadratic excitation