Sex-based differences in the association between duration of type 2 diabetes and heart rate variability