Simulation of material budget measurements with beam telescopes