Charge determination of nuclei with the AMS-02 silicon tracker