In a pulse oximeter, which physiological principle is used to differentiate oxygenated from deoxygenated hemoglobin?