Structure dependence of the optical properties of Cu, Ag and Au