On Schrödinger's factorization method for Sturm-Liouville operators