Ligand design for functional metal-organic frameworks.