The derivation algebra and automorphism group of the (generalized) twisted N =2 superconformal algebra