Cathay Pacific narrows first-half loss as passenger numbers rise