Ecuador gives legal rights to wild animals