Mangalore Refinery and Petrochemicals swings to Q3 loss due to windfall tax