High resolution molecular photoelectron spectroscopy II. Water and deuterium oxide