Learning in a Virtual Environment to Improve Type 2 Diabetes Outcomes: Randomized Controlled Trial