Several American Airlines flights grounded by iPad app glitch