Assessing model fit using posterior prediction