Syntactic and semantic factors in the acquisition of before and after