Zigzag equilibrium structure in monatomic wires