Dynamics of H-bonded liquids confined to nanopores