Chronic obstructive pulmonary disease: a risk factor for type 2 diabetes: a nationwide population‐based study