Endotyping Sleep Apnea One Breath at a Time: An Automated Approach for Separating Obstructive from Central Sleep-disordered Breathing