Attractors for reaction-diffusion equations: existence and estimate of their dimension