Design and manufacture of gearboxes and gears