X-Ray Absorption Spectroscopy: a Powerful Method to Investigate Structural and Electronic Properties of Layered Silicates