Enhancing the luminescence of carbon nanodots in films by tailoring the functional groups through alkylamine-functionalization and reduction.