Polynomial integrability of the Hamiltonian systems with homogeneous potential of degree -2