Energy-efficient flow control for on-chip networks