Ricci curvature bounds and Einstein metrics on compact manifolds