On distinguishing a visual signal from noise by patients with visual agnosia and visual hallucinations