The impact of income inequality and economic complexity on ecological footprint: an analysis covering a long-time span