Precision positioning device for X-ray spectroscopy