Interaction of NO and O2 with Pd(111) surfaces. I.