Renewable energy strategy analysis in relation to environmental pollution for BRICS, G7, and EU countries by using a machine learning framework and panel data analysis