Repeatable and accurate assembly of X-ray foil optics