Modeling the morphodynamic response to width variations with and application to the Magra River (Italy)