LISA test-mass charging process due to cosmic-ray nuclei and electrons