A Tunable Energy Filter for Medical X-Ray Imaging