Study of the reaction e+e− → ψ(2S)π+π− via initial-state radiation at BaBar