Optimization of photosynthetic biogas upgrading in closed photobioreactors combined with algal biomass production