Optimization of the refractory x-ray mask fabrication sequence