Tidal, Residual, Inter-tidal mud-flat (TRIM) model and its applications to san Francisco Bay, California