TREANT: Red-teaming Text-to-Image Models with Tree-based Semantic Transformations