Machine learning based study of longitudinal HbA1c trends and their association with all‐cause mortality: Analyses from a National Diabetes Registry