Two-dimensional attractive Hubbard model and the BCS-BEC crossover