Boundary flux identification for thermal systems with memory