The origin of the oxygen-evolving complex