Systematically controlling the error rates in variation-prone networks-on-chip for energy efficiency