One-pot preparation of nitrogen-doped carbon dots for sensitive and selective detection of Ag+ and glutathione