Advanced forecasting method to the optimal management of a DC microgrid in presence of uncertain generation