Adaptive evolutionary trajectories in complexity: Transitions between unicellularity and facultative differentiated multicellularity