Finite Elements with non Homogeneous Embedded Discontinuities