Recovering structures of complex dynamical networks based on generalized outer synchronization