Magnetic spheres in microwave cavities