Critical temperature for the three-dimensional Ising ferromagnet with first- and second-neighbor interactions