Methodological framework for heart rate variability analysis during exercise: application to running and cycling stress testing