High glucose inhibits glucose-6-phosphate dehydrogenase leading to increased oxidative stress and beta cell apoptosis