On entropy and information gain in random fields