Recognition of finite quasi-simple groups by the degrees of their irreducible representations