Swelling-Induced Cavitation of Elastic Spheres