Egg-carton-style patterning keeps charged nanoparticles in place and suitable for a wide range of ap