Potential energy surfaces for the ground electronic state of water, hydrogen sulfide, and hydrogen selenide