In situ impedance and X-ray diffraction study of phase transformation in lithium manganese spinel