Text this: Magnus series expansion method for solving nonhomogeneous stiff systems of ordinary differential equations