Resonant scattering and optical properties of intermediate valence Sm1−xYxS