Sheep and goat keeping from an economic and ecological perspective