Elements of Modern X-ray Physics