Acquisition of chemical recognition cues facilitates integration into ant societies