Discretization of a nonlinear dynamic thermoviscoelastic Timoshenko beam model