Estimation of SpO2 levels and heart rate from ppg signals in the presence of motion artifacts