Topological Fulde–Ferrell and Larkin–Ovchinnikov states in spin-orbit-coupled lattice system