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