Template effects in the self-assembly of a [2]rotaxane and a [2]pseudorotaxane with the same binding sites in the linear component