Influence of thermal diffusion on the laser ablation of thin polymer films