Measurement of CP violation and constraints on the CKM angle γ in B±→DK± with D→KS0π+π- decays