Qantas posts $372 million profit for first half of fiscal 2017