Measurement of azimuthal correlations of D mesons with charged particles in pp collisions at $$\sqrt{s}=7$$ s = 7 TeV and p–Pb collisions at $${\sqrt{{{s}}_{\scriptscriptstyle {\mathrm{NN}}}}}=5.02$$ s NN = 5.02 TeV
European physical journal. C, Particles and fields