From a ℤ2 topological insulator to a square ribbon: Tuning quantum spin Hall states and conductivity