An industry 4.0 framework for the quality inspection in gearboxes production