Comparative study of ligand binding during the postsynthetic stabilization of metal oxide nanoparticles.