Describe how x-rays are produced in an x-ray tube?