Some studies of hydrogen bonding in organic and organometallic crystals: applications to crystal engineering