Allocation of losses in distribution systems with embedded generation | Synapse