Crystallization and precipitation engineering—I. An efficient method for solving population balance in crystallization with agglomeration