COMPUTATION OF ELASTIC WAVES IN MATERIALS WITH VARIABLE DENSITY