The effect of cognitive skills and autism spectrum disorder on stereotyped behaviors in infants and toddlers