Pulse height-energy relations for electrons and alpha particles in a liquid scintillator