Extension of the Smoluchowski Theory to Transitions from Dilute to Dense Regime of Brownian Coagulation: Triple Collisions