Construction of spectral invariants of Hamiltonian paths on closed symplectic manifolds