Path integral formulation of nonequilibrium statistical mechanics