Cathay Pacific posts narrower H1 loss as costs fall