Energy Lost in Transmission and Distribution Grids