The influence of oxygen activity on T, T′, and T∗ phase stabilities in (La,RE)2CuO4 systems