Measurement of the proton structure function F2 (x, Q2) in the low-x region at HERA