Black-box optimization for integer-variable problems using Ising machines and factorization machines