how cerebral palsy is diagnosed