Measurement of C P violation in the phase space of B ± → K + K - π ± and B ± → π + π - πd±ecays