On symplectic and non--symplectic automorphisms of K3 surfaces