Spectroscopic analysis of ferrite doped with different rare earth elements