Molecular Recognition in the Solid State: Hydrogen-Bonding Control of Molecular Aggregation