On the structure of almost einstein manifolds