Electromagnetic fields in a Taub-Nut-type cosmology