Attractors for nonautonomous evolution equations with almost periodic symbols