An unsupervised learning strategy for postoperative brain cavity segmentation simulating resections during training