Gauge invariance and functional integration measure in lattice gravity