Advanced applications of X-ray Absorption Spectroscopy with synchrotron radiation to materials science and biostructures