In situ thermal preparation of oxide surfaces