Dose calculation for photon beams with intensity modulation generated by dynamic jaw or multileaf collimations | Synapse