Study of the Synthesis and Properties of the Ternary Complexes of Rare Earths with Mandelic Acid and 1,10-Phenanthroline