Gasless combustion in two-layer structures: A theoretical model