Threshold effects for the two and three-particle hamiltonians on lattices