Noncommutative partially convex rational functions