A criterion for evaluating glass-forming ability of alloys