Structural phase transition in (La1−xBax)2CuO4−δ