One-pot synthesis of nitrogen-doped carbon dots for highly sensitive determination of cobalt ions and biological imaging.