Hydrogen bond dynamics in membrane protein function