Indonesia wrests control of huge copper mine from American firm