A new framework of marginal loss factors with consideration of the electrical distance