A deep learning-based method for prostate segmentation in T2-weighted magnetic resonance imaging