Chargers and inverters