Joint Metal Artifact Reduction and Segmentation of CT Images Using Dictionary-Based Image Prior and Continuous-Relaxed Potts Model