Text this: Optimal allocation of distributed generation for power loss reduction and voltage profile improvement