X-ray and optical wave mixing