Loci of Riemann and Klein Surfaces with Automorphisms