Structural phase transformations and superconductivity in La2-xBaxCuO4.