Thermal strain in thin lead films III: Dependences of the strain on film thickness and on grain size