getGroups function

Extract grouping factors from an saeTrafo object