Production of X-rays and Interactions of X-rays with Matter