Optimal Economic Dispatch for Integrated Power and Heating Systems Considering Transmission Losses