Amplitude-phase decomposition of the magnetotelluric impedance tensor