Establishing irreduciblity of representations via Gram determinants