Mississippi loses legal battle over groundwater to city of Memphis