A hierarchical approach to model-based skull segmentation in MRI volumes