Warped products with special Riemannian curvature