Dendritic flux avalanches and the accompanied thermal strain in type-II superconducting films: effect of magnetic field ramp rate