Comments on the formation thermodynamics of selected groups of rare earth compounds