Transition-Metal Single Atom Catalyst Embedded in C2n for Toxic-Gas Reduction Reaction and Selective Gas-Sensing Application: Atomic-Scale Study