The sum-of-squares hierarchy on the sphere and applications in quantum information theory