A 2Dfinite element model for simulating water circulation and salinity distribution in bays and estuaries