The scintillator detector for the fast trigger and time-of-flight (TOF) measurement of the space experiment AMS-02