Understanding the physical and algorithmic differences between brainwave and optical heart rate sensors.