Effects of physical and mental exercise on heart rate variability