Nonlinear X-Ray Spectroscopy for Materials Science