Joule heating associated with auroral electrojets during magnetospheric substorms