During photosynthesis, the energy from sunlight is used to split water molecules. What happens to the hydrogen ions that are split from the water molecules?

Athey build up in the thylakoid
Bthey are given off in the form of gas
Cthey bond to each other to create ATP
Dthey release energy for other processess