Floquet theory of Cooper pair pumping