Automatic CAD-FEM procedure for gear analysis