Chern Numbers in Discretized Brillouin Zone: Efficient Method of Computing (Spin) Hall Conductances