Electrochemical tuning of optical properties of graphitic quantum dots