Charge measurement of cosmic ray nuclei with the plastic scintillator detector of DAMPE