A polymer in an ionic liquid: Effect of the length of the cationic nonpolar tail on the character of interchain correlations