An Encoding Scheme to Reduce Power Consumption in Networks-on-Chip