X-Ray Spectroscopic Studies of Intermetallic Compounds