Rates in the strong invariance principle for ergodic automorphisms of the torus