Maximum entropy and average error rates in digital communication systems