Well-balanced high-order centered schemes for non-conservative hyperbolic systems: applications to shallow water equations with fixed and mobile bed