Malaysia's Petronas swings back to Q2 profit