Model-free estimation of a psychometric function