Modeling phototrophic biofilms in a plug-flow reactor.