Thermodynamic quantities of two-dimensional Ising models obtained by noisy mean-field annealing and a coherent Ising machine