Electronic and Optical Properties of Edge-Functionalized Graphene Quantum Dots and the Underlying Mechanism