Modeling and control of single-phase rectifiers and inverters | GenAI Works