Thermal escape of neutral hydrogen and its distribution in the Earth's thermosphere