Growth of pentacene on Ag(111) surface: A NEXAFS study