Transitions of the hydrogen bond in epoxy–diamine networks