CP asymmetries in three-body B ± decays to charged pions and kaons