Analytic energy gradients for general coupled-cluster methods and fourth-order many-body perturbation theory | Synapse