On the action of automorphisms of a curve on the first L-adic cohomology