The influence of dielectric films on the superconductivity of thin Sn and Tl films