Automated structure generation for first-principles transition-metal catalysis