Instability Index, Exponential Trichotomy and Invariant Manifolds for Hamiltonian PDEs