Mains adapters and voltage inverters