Study reveals the underlying mechanisms behind the link between obesity and type 2 diabetes