Text this: Optimal placement and sizing of a DG based on a new power stability index and line losses