The dynamic response of the thermosphere to the energy influx resulting from energetic O+ ions