A novel approach using a minimum cost maximum flow algorithm for fault-tolerant topology reconfiguration in NoC architectures