Problem of thermoviscoelasticity for a piecewise homogeneous anisotropic plate