Spectral Difference method with a posteriori limiting: Application to the Euler equations in one and two space dimensions