General equilibrium models of the term structure of interest rates: the N-production processes case