Optimizing and evaluating a graph-based segmentation of MRI wrist bones