An analytical phytoplankton model and its application in the tidal freshwater James River