Electrical transport in transition-metal liquids and metallic glasses