Signal extraction and rational inattention