The effect of annealing on the resistance of a p/i/n structure