A dynamic model of the cellular carbon to chlorophyll ratio applied to a batch culture and a continental shelf ecosystem