Effects of light-dark cycles on photosynthetic bacteria wastewater treatment and valuable substances production.