Adiabatic shearing of non-homogeneous thermoviscoplastic materials