How to turn a second-order cellular automaton into a lattice gas: a new inversion scheme