Modeling algal productivity in large outdoor cultures and waste treatment systems