SDAs function by interacting with the inorganic species during the crystallization process. They can act as templates around which the inorganic framework forms, or they can influence the kinetics of the crystallization process. The interaction between the SDA and the inorganic species helps in stabilizing specific intermediate structures, guiding the formation of the final crystalline material.