Closed-form decomposition of one-loop massive amplitudes