Resource partitioning based on body size contributes to the species diversity of wood‐boring beetles and arboreal nesting ants