Exact Solution of the Dirac Equation for A Spin-1/2 Charged Particle in 2D and 3D Euclidean Spaces with Shape Invariance Symmetry