This application features a method of forming a nanoporous layer. The method includes steps of reducing metal ions in a reverse micelle phase composition to form nanoparticles, removing surfactant from the composition to form clusters of the nanoparticles, dispensing the composition including the nanoparticle clusters dispersed in a liquid on a substrate, and drying to form the nanoporous layer. The nanoporous layer includes nanoparticles deposited to form a three dimensional network of irregularly shaped bodies. The nanoporous layer also includes a three dimensional network of intercluster spaces that are not occupied by the three dimensional network of irregularly shaped bodies.