Visual computation of lightness in simple and complex