Intercomparison of radiotherapy treatment planning systems using calculated and measured dose distributions for external photon and electron beams.