Perceptual inference is impaired in individuals with ASD and intact in individuals who have lost the autism diagnosis