History of spontaneous miscarriage and the risk of diabetes mellitus among middle-aged and older Chinese women