Glass transition and viscosity in metallic glasses and liquids