Derivation of the kinetic wave equation for quadratic dispersive problems in the inhomogeneous setting