Classification of finite-dimensional irreducible representations of generalized quantum groups via Weyl groupoids