The computation of factorization invariants for affine semigroups