Bayesian ideal observer modeling for psychophysical data