Electronic structure of RTX (R=Pr, Nd; T=Cu, Ag, Au; X=Ge, Sn) compounds