Ligand engineering of colloidal nanocrystals