Optical rotation produced by atoms in a magnetic field