X-ray generation for medical applications from a laser-produced plasma