Viscosity of liquid rare-earth and actinide metals