Patterned nanoporous-gold thin layers: structure control and tailoring of plasmonic properties