Gravar-mail: Using electronic health records to develop and validate a machine-learning tool to predict type 2 diabetes outcomes: a study protocol