Modelling of Grain Sorting Mechanisms in the Nearshore Area for Natural and Nourished Beaches