Band-limited functions on a bounded spherical domain: the Slepian problem on the sphere