In-plane patterning of aggregated nanoparticle layers