Gradual evolution of cell cycle regulation by cyclin-dependent kinases during the transition to animal multicellularity