The invariants of six symmetric 3 × 3 matrices