Spectroscopic and electrical properties of Mg–Ti ferrite doped with different rare-earth elements