Effects of an intervention by a diabetes team in hospitalized patients with diabetes