A systematic study for determining the optimal relaxation time in the lattice Boltzmann method at low Reynolds numbers