Optimized probes of CP-odd effects in the tt¯h process at hadron colliders