Airbus trims A350 output, quarterly loss worse than expected