Impact of Sm3+ and Er3+ Cations on the Structural, Optical, and Magnetic Traits of Spinel Cobalt Ferrite Nanoparticles: Comparison Investigation