Sequential ideal-observer analysis of visual discriminations