Study of B- →dK-π+π- and B- →dπ-π+π- decays and determination of the CKM angle γ