Calculations of dominant factors of glass-forming ability for metallic glasses from viscosity