Crack pattern in ceramics subject to thermal shock