Structure of the intermediate high-pressure phases of ternary lead tellurides