Optimization of algal photobioreactors using flashing lights