Double-junction effect in proton-irradiated silicon diodes