Measuring principle of pulse oximeter