A mixed-valence lanthanide metal–organic framework, templated by 2,2′-bipyridine formed in situ reaction: synthesis, structure, and luminescent properties