Which pathophysiological mechanism is primarily responsible for the development of type 2 diabetes mellitus?