Tidal mixing and trapping in mangrove swamps