In situ X-ray absorption measurements of the Cu/MgO(0 0 1) interface