Text this: Effects of lattice distortion and amount of d electrons on the pressure-driven structural phase transition in ZnO