Pulse-height defects for heavy ions in a silicon surface-barrier detector