Joint registration and segmentation via multi-task learning for adaptive radiotherapy of prostate cancer