Simulation of crystal structures by empirical atom-atom potentials. II: The orthorhombic-to-tetragonal phase transition in the high-temperature (Tc>90 K) superconductor YBa2Cu3O7−y