Localized vibrations ofH andD in Ta and their relation to theH(D) potential