https://www.mphysicstutorial.com/2020/12/half-wave-and-full-wave-rectifier.html