Information measures for discrete random fields