The influence of dielectric environment on the localized surface plasmon resonance of silver-based composite thin films