Compose a research paper outlining the fundamentals of X-ray analysis.