Measurements of K X-ray fluorescence cross sections of Fe, Co, and Ni in an external magnetic field