Algebraic Equivalence of Linear Structural Equation Models