Analysis by X-ray photoelectron spectroscopy of LnBa2Cu3O7−x: The significance of fine structure in the O 1s and Ba 3d envelopes