The gluon density of the proton at low x from a QCD analysis of F2