Optimization in R&D intensity and tax on corporate profits for supporting labor productivity of nations