Theoretical and experimental studies on the paramagnetic behavior of some rare earth and iron group ions in crystals