Dalitz-plot analysis of the decays B-+/--> K +/-pi(-/+)pi(+/-)