Dislocation dynamics in non-convex domains using finite elements with embedded discontinuities