A Lie algebraic approach to effective mass Schrödinger equations