Mechanisms of electron-stimulated desorption of protons from water: Gas, chemisorbed and ice phases