Understanding Switch-Mode Power Supplies: Efficiency and Versatility for Modern Electronics