Text this: Exact minimization of the energy losses and the CO2 emissions in isolated DC distribution networks using PV sources