On the violation of Legon–Millen's rules for predicting angular geometries of hydrogen-bonded dimers: an ab initio study