Red emission B, N, S-co-doped carbon dots with pH-responsive functionality for colorimetric and fluorescent dual-mode detection of Ag+ ions