Gearboxes, motors and inverters