https://derygucuhejal.kurt-haspel.com/detector-and-rectifier-circuits-book-8865bf.php