Farmers are using GPS collars to create “virtual fences” that guide livestock safely and sustainably