how does type 2 diabetes develop