Dirac-Fock studies of some electronic properties of rare-earth ions