Precise measurement of cosmic ray fluxes with the AMS-02 experiment