Generative Adversarial Network based Autoencoder: Application to fault detection problem for closed loop dynamical systems