X-ray laser beam propagation in double-foil targets