A laptop running on battery is plugged into the AC mains supply. explain how the switch from DC TO AC is achieved