Advanced, cost-based indices for forecasting the generation of photovoltaic power