Thermal effects and transverse structures in semiconductor microcavities with population inversion