Probing structural changes during the onset of catalytic activity byin situ X-ray diffractometry