Loss of functionally unique species may gradually undermine ecosystems