Sparse domination for the lattice Hardy–Littlewood maximal operator