Nontrivial solutions for resonant cooperative elliptic systems via computations of critical groups