Drivers of decoupling and recoupling of crop and livestock systems at farm and territorial scales