Measurement and QCD analysis of the photon structure function F2(x, Q2)