Homology of spaces of regular loops in the sphere