Measuring Z 2 topological invariants in optical lattices using interferometry