Anomalous refraction of self assembled gold nanowires studied by the generalized Snell's law