American Airlines lost $545 million in the third quarter on higher labor costs while rivals prosper