Nonlocal gravitational models and exact solutions