Structure-directing factors when introducing hydrogen bond functionality to metal–organic frameworks