Insomnia, depression and smoking are risk factors for type 2 diabetes