Nanoparticle patterning for biomedicine