Solar modulation of cosmic proton and helium with AMS-02