Solving three-body scattering problems in the momentum lattice representation