Xanes and diffuse leed for atoms and complex molecules on surfaces