A multifunctional sensor for selective and sensitive detection of vitamin B12 and tartrazine by Förster resonance energy transfer.