The Hall effect in the variable-range-hopping regime