Volume transition in a gel driven by hydrogen bonding