Uniform stabilization for the semilinear wave equation in an inhomogeneous medium with locally distributed nonlinear damping and dynamic Cauchy–Ventcel type boundary conditions