The solar corona in active regions and the thermal origin of the slowly varying component of solar radio radiation