Theoretical investigation of some magnetic and spectroscopic properties of rare-earth ions