Impulsive Joule heating of the auroral thermosphere as a source of generation of large-scale gravity waves