Z(2) monopoles in lattice gauge theories