Shaft design: A semi-analytical finite element approach