Transient and residual thermal stresses in quenched cylindrical bodies