Identifying cobordisms using kernel persistence