Polytopes Arising From Binary Multi-Way Contingency Tables And Characteristic Imsets For Bayesian Networks