Plankton ecology and the Proterozoic-Phanerozoic transition