Development and validation of a new diabetes index for the risk classification of present and new-onset diabetes: multicohort study