Optimization of SERS-active substrates for near-field Raman spectroscopy