Losses in transmission and distribution