Invariant-based approach to symmetry class detection