Time-dependent perturbation theory for nonequilibrium lattice models