Propagation of cosmic rays in the AMS-02 era