Causes of hyperglycemia and hypoglycemia in adult inpatients.