LCD contrast control and optimization