Parametric interactions in an inhomogeneous medium of finite extent with abrupt boundaries