A novel speech analysis algorithm to detect cognitive impairment in a Spanish population