Laser absorption and energy transfer in foams of various pore structures and chemical compositions