MRPL swings to a loss in June quarter as refining margin shrinks further