Critical domain walls in the Ashkin–Teller model