Engineering electron metabolism in cyanobacteria