Automatic, Viewing-condition Dependent Contrast Grading Based on Perceptual Models