Contrasting leaf phenological strategies optimize carbon gain under droughts of different duration