Time-varying Riemann solvers for conservation laws on networks