Light propagation in composite materials with gain layers