parallel circuits with a diode