Design and validation of a semi-automatic bone segmentation algorithm from MRI to improve research efficiency