Meliá Hotels is trying to turn Spain’s tourism surge into something more durable than a single strong year.