Amplitude analysis of D+ → KS0 π+π+π-