Exact ICL maximization in a non-stationary temporal extension of the stochastic block model for dynamic networks