Transient thermal stresses in fully and partly cooled circular rings