Determination of the quark density ratio d(x)u(x) in the proton