Gauge Invariance of Integral Chern-Simons Invariants