How a Regulator-Rectifier works