Reference priors for discrete graphical models