Ghosn's appeal to end detention rejected by Tokyo court