Approximations of thermoelastic and viscoelastic control systems