Twirl tensors and the tensor equation AX−XA=C