Thickness dependence of the transition temperature of superconducting films