Measurements of neutral B decay branching fractions to K0S pi+ pi- final states