Correlated electron–hole transition energies in quantum-well wires: Effects of hydrostatic pressure