Controlling molecular and supramolecular structure of hydrogen-bonded coordination compounds