Investment/productivity dynamics and distribution dynamics in a multisector economy: some theory and an application to Italian regions