Photocycle of Excitons in Nitrogen-Rich Carbon Nanodots: Implications for Photocatalysis and Photovoltaics