Numerical Solution to a One-Dimensional, Nonlinear Problem of Thermoelasticity with Volume Force and Heat Supply in a Slab