SEraMic: A semi-automatic method for the segmentation of grain boundaries