Affinity purification of multifunctional polymer nanoparticles.