Estimating time-varying directed neural networks