Hydrocarbon and polyethylene glycol ligands for nanoparticle assembly