Diagnosis of intellectual disability: comparison between clinical criteria and automatized procedures