Computing the equivariant cohomology of group compactifications