Inverting magnetotelluric data with distortion correction -- Stability, uniqueness and trade-off with model structure