Entrainment of cell division in phytoplankton with dynamic energy budgets