Magnetism of an excited self-conjugate nucleus: Precise measurement of the G factor of the 21+ state in MG 24