Renewable energy management in smart grids by using big data analytics and machine learning