Phonon calculation in Nb–Ta and Pd–Pt alloys in the coherent potential approximation