Effects of hydrostatic pressure on the electron factor and g-factor anisotropy in GaAs–(Ga, Al)As quantum wells under magnetic fields