The Evolutionary Transition from Anoxygenic to Oxygenic Photosynthesis