The electrical resistivity of rare earth metals at high temperatures and in the liquid state