Critical temperature for the two-dimensional attractive Hubbard model