Heating of the fuel mixture due to viscous stress ahead of accelerating flames in deflagration-to-detonation transition