PetroChina posts interim profit of $8.2 billion, flips from net loss yr earlier