Do states optimize? Public capital and economic growth