A full-integrated pulse-shape discriminator for liquid scintillator counters