Effects of energy deposition by nuclear scattering in silicon p-i-n diode detectors