Similar Items: Optimal allocation of distributed generation for power loss reduction and voltage profile improvement