Dynamical ensembles in nonequilibrium statistical mechanics