Formation of a hard surface layer during drying of a heated porous media