MedUniSeg: 2D and 3D Medical Image Segmentation via a Prompt-driven Universal Model