Double titanium and rare-earth phosphates