Analysis, synchronization and control of complex networks