Parameterizations and fitting of bi-directed graph models to categorical data