Bright-green-emissive nitrogen-doped carbon dots as a nanoprobe for bifunctional sensing, its logic gate operation and cellular imaging.