Thermally driven diurnal tide in the atmosphere