Computing von Kries Illuminant Changes by Piecewise Inversion of Cumulative Color Histograms