Quaternionic factorization of the Schrödinger operator and its applications to some first-order systems of mathematical physics