Modulated optical properties in Ag and Au films