Periodic optimal control for biomass productivity maximization in a photobioreactor using natural light