Transformers and inverters