Half wave rectifier circuit