Effect of tidal resonance on the morphology of Wadden and Estuaries