Solve each of the following systems of equations using matrix method.
x - y + z = 1;
2x + y - z = 2;
x - 2y - z = 4.