Solution of the matrix equation AX-XB=C