Structure functions of deep inelastic lepton-nucleon scattering in QCD (I): Calculation method: Distributions of valence quarks