Calculation of the replacement correction factors for ion chambers in megavoltage beams by Monte Carlo simulation.