Statistical mechanics of nonequilibrium processes