Finite element decomposition and grid generation for brain modeling and visualization