Anion dependent self-assembly of a linear hexanuclear Yb(III) salen complex with enhanced near-infrared (NIR) luminescence properties.