Ternary Compounds of rare earths with silver and gallium