The Determination of Radiation Hardness of Semiconductor Materials and Devices with Ion Beams