A centralized voltage optimization function exploiting DERs for distribution systems