Influence of thermal treatment on second-harmonic generation in silver islands films