Impact of foreign direct investment, natural resources, renewable energy consumption, and economic growth on environmental degradation: evidence from BRICS, developing, developed and global countries