Nanostructured silver for applications in surface enhanced Raman spectroscopy and photoelectrochemical reactions