Trade-offs in dormancy phenology in endotherms and ectotherms