Curvature bounds for warped products of metric spaces