Generalized X-join of graphs and their automorphisms