Structural transitions in the manganite Pr0.5Sr0.5MnO3