Grain sorting effects on the formation of tidal sand waves