DEM-Based Approach for the Modeling of Gelation and Its Application to Alginate