On the mechanism of the structural transition to the low temperature tetragonal phase in La2−xBaxCuO4