ANA: 787 had battery leak in flight, JAL also grounds 787s