Efficient weighting strategy for enhancing synchronizability of complex networks