Duality in interacting particle systems out of equilibrium