Smooth manifolds with prescribed rational cohomology ring