Understanding nanoparticle assembly: a simulation approach to SERS-active dimers.