Causal structure and algebraic classification of non-dissipative linear optical media