Hierarchical triples near supermassive black holes in numerical relativity