Local gain control and perceptual invariances