Persistence of invariant manifolds for nonlinear PDEs