Robust estimation of geomagnetic transfer functions