Convolutional neural networks for medical image segmentation