Tunable assembly of nanoparticles on patterned porous film.