The quadratic-form identity for constructing Hamiltonian structures of the Guo hierarchy