Spain’s former king says he’s leaving country