Energy calibration of a CR-39 nuclear-track detector irradiated by charged particles