American Airlines pilot dies after medical episode on flight