The mechanism of photosynthetic water splitting