Increasing accuracy of pulse transit time measurements by automated elimination of distorted photoplethysmography waves