Production of electricity from photosynthetic microorganisms