Carbon dots and nitrogen-doped carbon dots-metal oxide nanocomposites: robust agents for effective sensing of ions