Military spending, economic growth and investment: a disaggregated analysis by income group