An accurate skull stripping method based on simplex meshes and histogram analysis for magnetic resonance images