Thermal instabilities and poloidal asymmetries in the tokamak edge plasma