Trial-by-trial updating of an internal reference in discrimination tasks: Evidence from effects of stimulus order and trial sequence