Optimization of the JUNO liquid scintillator composition using a Daya Bay antineutrino detector