Reaction of β-lactam carbenes with 2-pyridyl isonitriles: a one-pot synthesis of 2-carbonyl-3-(pyridylamino)imidazo[1,2-a]pyridines useful as fluorescent probes for mercury ion.