Fermentation in symbiotic and free living cyanobacteria