Robust Estimation of Magnetotelluric Impedance Functions Based on the Regression M-estimator