An inverse problem in the theory of combustion of materials with memory