Lattice-tiling properties of integral self-affine functions