Alternating and symmetric groups with Eulerian generating graph