Mechanisms of the effect of dopants and P(O2) on the improper ferroelastic phase transition in SrTiO3 journals