factors controlling inversion of temperature