Amplitude Analysis of the B+ → D+ D− K+ Decay