Monte Carlo studies of the square Ising model with next-nearest-neighbor interactions