Generation of finite element meshes using computed tomography scans