A mass spectrometric analysis of the water-splitting reaction