Acquirement of water-splitting ability and alteration of the charge-separation mechanism in photosynthetic reaction centers