Cognitive profiles and rehabilitation of children with developmental and acquired deficits