Influence of the dielectric substrate on the effective optical constants of silver plasmonic films