Luminescent Eu(III) and Gd(III) trisbipyridine cryptates: experimental and theoretical study of the substituent effects.