American Airlines posts bankruptcy-related loss