Potential functions for hydrogen bond interactions