Energy-dependent partial wave analysis of the reaction pi^-pp(1S0)-->pn