Electromagnetic heating of spheres