An efficient algorithm for mapping imaging data to 3D unstructured grids in computational biomechanics