Path-integral complexity for perturbed CFTs