Automatic calibration and simultaneous estimation of bottom friction and open boundary conditions in a tidal model | Synapse