How 2- and 4-year-old children coordinate social interactions with peers