Half wave and full wave rectifiers