Equivalence of the Z4 and the Z2 × Z2 lattice gauge theories