The nonlinear diffusion limit for generalized Carleman models: the initial-boundary value problem