On the heat and mass transport processes of a horizontal melting or decomposing layer under a molten pool