Calculation of x-ray transmission through a multileaf collimator.