Text this: Laser interaction with undercritical foams of different spatial structures