Minimum-energy configurations for charges on the surface of a sphere