The determination of complex refractive indices with Fourier-transform interferometry: I. Basic equations