Design principles for contrast gain control from an information theoretic perspective