Recursive generation of higher-order terms in the Magnus expansion.