Competition between pelagic and benthic microalgae for phosphorus and light