Milano Retinex Paths as Local Minima of an Energy Functional with Tunable Color and Spatial information