Casimir energies for spherically symmetric cavities