Calculation of the response of a gasifying energetic material exposed to monochromatic radiation