Adjusting the stability of metal-organic frameworks under humid conditions by ligand functionalization.