Bayesian analysis of d-decomposable bidirected graphical models for discrete data