Modeling the self-propagation reaction in heterogeneous and dense media: Application to Al/CuO thermite