Gravar-mail: Illumination and Reflectance Estimation with its Application in Foreground Detection