Flexible and integrated. Photovoltaic Investment evaluation in a Smart Grid environment