Reversible and irreversible binding of nanoparticles to polymeric surfaces