In the context of cookie making, besides providing sweetness, what is a primary function of granulated sugar?