Automorphisms of generalized down-up algebras