The role of radiation damage on the current-voltage characteristics of p-n junctions