Assembly of nanoparticles on patterned surfaces by noncovalent interactions