Uses of complex metrics in cosmology