Fundamentals of X-Ray Physics