Carbon dot-MnO2 FRET system for fabrication of molecular logic gates