electron flow during photosynthesis