Direct observation and control of hydrogen-bond dynamics using low-temperature scanning tunneling microscopy