A nonlinear boundary value problem arising from competition in the chemostat