Light output response of KamLAND liquid scintillator for protons and 12C nuclei