Anisotropy of cosmic ray fluxes measured with AMS-02 on the ISS