Leading indicators of phytoplankton transitions caused by resource competition