The lanthanide complexes of 2,2'-bipyridyl-6,6'-dicarboxylic dimethylanilides: the influence of a secondary coordination sphere on the stability, structure, luminescence and f-element extraction.