Higher oil and gas output lifts Total profit