JORDAN–KRONECKER INVARIANTS OF LIE ALGEBRA REPRESENTATIONS AND DEGREES OF INVARIANT POLYNOMIALS