An analysis of the hydrogen bond in ice