On the shot effect of p-n junctions