Directed information for complex network analysis from multivariate time series